function HomeCtrl($scope, $routeParams) {
}

function GameDetailCtrl($scope, $routeParams) {
  $scope.gameId = $routeParams.gameId;
}

function PhoneListCtrl($scope, $http) {
/*
  $http.get('/services/data/v28.0/query?q=select+name+from+team__c', 
         {headers: {'Authorization': 'Bearer '+rest_sid}}).success(function(data) {
    $scope.teams = data;
  });
*/
  $scope.phones = [
    {"name": "Nexus S",
     "snippet": "Fast just got faster with Nexus S.",
     "age": 0},
    {"name": "Motorola XOOM™ with Wi-Fi",
     "snippet": "The Next, Next Generation tablet.",
     "age": 1},
    {"name": "MOTOROLA XOOM™",
     "snippet": "The Next, Next Generation tablet.",
     "age": 2}
  ];
 
  $scope.orderProp = 'age';

function getCookie(c_name)
{
var c_value = document.cookie;
var c_start = c_value.indexOf(" " + c_name + "=");
if (c_start == -1)
  {
  c_start = c_value.indexOf(c_name + "=");
  }
if (c_start == -1)
  {
  c_value = null;
  }
else
  {
  c_start = c_value.indexOf("=", c_start) + 1;
  var c_end = c_value.indexOf(";", c_start);
  if (c_end == -1)
  {
c_end = c_value.length;
}
c_value = unescape(c_value.substring(c_start,c_end));
}
return c_value;
}
}
